Skip to content

fix(evals): tell plugin-eval not to repeat an INVALID run's figure - #16267

Merged
kyle-sexton merged 6 commits into
mainfrom
fix/16251-plugin-eval-invalid-no-number
Nov 15, 2026
Merged

kyle-sexton merged 6 commits into
mainfrom
fix/16251-plugin-eval-invalid-no-number

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Refs: #16251

EVAL RECORD

Opus meets every bar on both cases. Sonnet meets every bar on invalid-gate-no-number. Sonnet pe-invalid-no-number is NOT DECIDED under the registered rule, because the BEFORE side has fewer than 6 fired counted runs (4 of 18). The owner released this pull request on this record as an exception to that minimum (decision Q164, 2026-11-14 US Eastern): the BEFORE side fails the no-number grader in every fired run (0 of 4) and in every run (0 of 18), and the AFTER side passes it in 8 of 8 fired runs.

Registration

The pre-registration was written before any launch and froze the graders, the helper scripts and the pass rule. Amendment 1 was set by the hub before batch 1. It changed the denial rule: only a denial that run-validity.py itself counts excludes its run, and the denials the gate sets aside exclude nothing. Amendment 2 was written by the hub after batch 1 stopped on the skill-load check (4 of 6 Sonnet BEFORE runs made no Skill call) and before any score was read. For diagnosis, the six batch-1 replies were read; all six quote the figure. Amendment 2 made four changes:

  • An unfired with-arm run is excluded from the fired-only reading instead of voiding its file.
  • Every grader is reported on two readings, with the bars judged on the fired-only reading.
  • Sonnet pe-invalid-no-number grew to 18 runs per side, with a minimum of 6 fired counted runs per side.
  • The plan grew to 14 batches.

The owner set the fired-runs reading in decision Q160, option (a): "judge the text change on runs where the skill fired, report the all-runs figure beside it, file a separate issue for the trigger gap, and amend this issue's done-when." The owner's answer, verbatim, was "go w/ recommendations".

  • BEFORE: 5630e37b256e4f2a3b4a6a568f90a39851c9151c (merge-base with origin/main).
  • AFTER: 348f66317d94bd0b50cc91dad32cb0d06a862ebb (head of this pull request's branch).
  • Between the BEFORE copy and the AFTER copy of plugins/evals, only skills/plugin-eval/SKILL.md differs.
  • Claude Code 2.1.325 in every run. Models: sonnet (claude-sonnet-5-5) and opus (claude-opus-5-5). Judge: claude-opus-5-5.
  • Runs per side per case: Sonnet 18 on pe-invalid-no-number and 12 on invalid-gate-no-number; Opus 6 on each.
  • Launch flags on every batch: --runs 6 --ablation none -j 2 --trust-plugin --keep-temp --judge-model claude-opus-5-5 --threshold 0.8 --max-cost-usd 5 --no-publish, with one exact case name per command. No batch used --allow-tools or --scaffold.

Bars, as pass rates over fired counted runs: no-number AFTER at least 5/6. Every other grader's AFTER rate may not fall below its BEFORE rate by more than 1/6.

Sonnet, pe-invalid-no-number: NOT DECIDED

Fire rate: BEFORE 4 of 18 (0.22), AFTER 8 of 18 (0.44).

Grader Fired-only BEFORE Fired-only AFTER All runs BEFORE All runs AFTER Reading against the bar
no-number 0/4 8/8 0/18 8/18 fired-only not decided (meets the bar as read); all-runs NOT MET
post-invalid-instead 4/4 7/8 4/18 7/18 fired-only not decided (meets the bar as read); all-runs MET
reason-run-errors 4/4 8/8 18/18 18/18 fired-only not decided (meets the bar as read); all-runs MET
reason-traces 4/4 8/8 18/18 18/18 fired-only not decided (meets the bar as read); all-runs MET
reports-invalid 4/4 8/8 18/18 18/18 fired-only not decided (meets the bar as read); all-runs MET
skill-fired 4/4 8/8 4/18 8/18 fired-only not decided (meets the bar as read); all-runs MET

Fired runs per batch, in launch order:

Batch Side Fired
1 BEFORE 2 of 6
2 AFTER 0 of 6
3 BEFORE 0 of 6
4 AFTER 6 of 6
5 BEFORE 2 of 6
6 AFTER 2 of 6

The cause of this swing between batches is not established. In all 36 runs, the init event's model, Claude Code version, tools and skills fields were identical, and its plugins entry differed only in which copy it named. Nothing further was compared.

Opus, pe-invalid-no-number: MET

Fire rate: BEFORE 6 of 6, AFTER 6 of 6.

Grader Fired-only BEFORE Fired-only AFTER All runs BEFORE All runs AFTER Reading against the bar
no-number 0/6 6/6 0/6 6/6 MET on both readings
post-invalid-instead 5/6 6/6 5/6 6/6 MET on both readings
reason-run-errors 6/6 6/6 6/6 6/6 MET on both readings
reason-traces 6/6 6/6 6/6 6/6 MET on both readings
reports-invalid 6/6 6/6 6/6 6/6 MET on both readings
skill-fired 6/6 6/6 6/6 6/6 MET on both readings

Sonnet, invalid-gate-no-number: MET

Fire rate: BEFORE 12 of 12, AFTER 12 of 12.

Grader Fired-only BEFORE Fired-only AFTER All runs BEFORE All runs AFTER Reading against the bar
no-number-from-invalid 12/12 12/12 12/12 12/12 MET on both readings
skill-fired 12/12 12/12 12/12 12/12 MET on both readings
token-keep-temp 12/12 12/12 12/12 12/12 MET on both readings
why-invalid 12/12 12/12 12/12 12/12 MET on both readings

Opus, invalid-gate-no-number: MET

Fire rate: BEFORE 6 of 6, AFTER 6 of 6.

Grader Fired-only BEFORE Fired-only AFTER All runs BEFORE All runs AFTER Reading against the bar
no-number-from-invalid 6/6 6/6 6/6 6/6 MET on both readings
skill-fired 6/6 6/6 6/6 6/6 MET on both readings
token-keep-temp 6/6 6/6 6/6 6/6 MET on both readings
why-invalid 6/6 6/6 6/6 6/6 MET on both readings

No run of invalid-gate-no-number failed any grader on either model or side, so there are no failing replies to quote.

Exclusions and validity

  • No run was excluded for a denial. The 4 Sonnet BEFORE and 10 Sonnet AFTER runs of pe-invalid-no-number that never fired the skill are left out of the fired-only reading only, under Amendment 2. Unfired runs: batch 1 runs 2, 3, 4 and 6; batch 2 runs 1 to 6; batch 3 runs 1 to 6; batch 5 runs 3 to 6; batch 6 runs 1, 3, 4 and 5.
  • run-validity.py returned VALID for batches 4 and 7 to 14. Batches 1, 2, 3, 5 and 6 returned INVALID on the skill fired check only, which Amendment 2 reads as the exclusion above. No other check failed in any batch.
  • Trace checks over every batch: 0 shim, 0 permission-check, no Bash among the init tools, 0 command-not-found, 0 limit, 0 leak hits. Every fired run returned the skill body. Every fired AFTER run read the new sentence, and no BEFORE run did.
  • Each per-batch check passed: case list exact, partial false, every run under its per-run cost bound. No stop rule fired after batch 1.
  • Batch 1 ran from 8:24 PM EST and batch 14 ended by 9:43 PM EST on 2026-11-14.

Cost

Total 11.02 USD across all 14 batches (agent 9.87, judge 1.15). By model and case: Sonnet pe-invalid-no-number 1.67, Opus pe-invalid-no-number 2.35, Sonnet invalid-gate-no-number 3.88, Opus invalid-gate-no-number 3.12.

In batches 9 to 14, each batch's per-run sum (agent plus judge) was 0.18 to 0.20 USD above the result file's costUsd. In each of those batches the gap equals the sum of the runs' judgeCostUsd, so the file's costUsd is agent cost alone. Batches 1 to 8 show no gap because pe-invalid-no-number has no judge grader.

Summary

On an INVALID run, /evals:plugin-eval said to report INVALID "and no number", yet the recorded replies refused the delta while quoting it. In the compare for #15707 the no-number grader of pe-invalid-no-number failed every recorded run (15 of 15). The with-arm replies read from that compare (Sonnet after, two runs; Opus after, two runs) all put the figure in the sentence that refused it: "don't post the +0.27", "the +0.27 is just 0.83 − 0.56", "treat the +0.27 as unmeasured", "the +0.27 (0.83 vs 0.56) shouldn't be quoted". All four already posted the INVALID line and its reasons, so only the repeated figure is the defect.

Fix

The validity step in plugins/evals/skills/plugin-eval/SKILL.md (Reading the delta, step 1) now says:

  • quote no score, delta or interval from an INVALID run, even to refuse it, because a quoted figure reads as the result;
  • refer to the delta as "the delta in the noise report", not by its value;
  • tell the user to post the verdict: INVALID line and its reasons instead.

The new sentences carry no digits and no example figure, so it does not echo the case's numbers. The rest of the paragraph is rewrapped so SKILL.md stays under the skill-quality 500-line cap (499 lines, one more than origin/main). No grader, sample, prompt or case changes. A patch changelog fragment for the evals plugin is added.

Verification

  • scripts/check-affected.sh --no-fetch, scripts/check-changelog-fragments.sh --check-required origin/main, validate-cases.py plugins/evals/evals (0 FAIL, no line for this case), git diff --check, typos and markdownlint on the changed files: all pass.
  • Before and after measurement (run by the hub after review): claude plugin eval of case pe-invalid-no-number with the evals plugin at origin/main (before) and at this branch (after), on Sonnet and on Opus, at least 6 runs per side on each model, --keep-temp, then run-validity.py on each result. The measure is the with-arm pass rate of the no-number grader. The bar, from the issue: after the change no-number passes in at least 5 of 6 runs on each model, recorded beside the before counts for the same model (0 of 15 recorded runs passed before, pooled across both models in the Add the whole-page sensitivity-control clause to the four cut-proof rules #15707 compare), and the case's other graders (reports-invalid, reason-run-errors, reason-traces, post-invalid-instead, skill-fired) show no loss.
  • The same before and after runs also read the pass rate of the no-number-from-invalid grader of the sibling case invalid-gate-no-number on both sides, because its grader and samples quote the figure while refusing it, so the new rule could move that case's score.

Related

  • fix(evals): plugin-eval replies repeat the INVALID run's figure while refusing to report it #16251: the issue; its second done-when item (the eval) is recorded above before merge.
  • Add the whole-page sensitivity-control clause to the four cut-proof rules #15707: the compare whose results showed the 15 of 15 failures.
  • plugins/evals/skills/plugin-eval/reference/reading-results.md (Read order, item 1) restates the rule in summary ("report INVALID and its reasons") and points back to SKILL.md; it does not disagree and is unchanged.
  • plugins/evals/evals/invalid-gate-no-number (judge grader no-number-from-invalid.md:8 and its pass samples) words the expected reply as "Do not post the +0.30", which quotes the figure the new rule says not to quote. Its judge reads meaning, so a reply that omits the figure should still pass, but the wording now disagrees with the skill; this pull request leaves eval files untouched.

session: GitHub Support

🤖 Generated with Claude Code

https://claude.ai/code/session_01RAoAtSBDhQLz3izEEg3ZRq

kyle-sexton and others added 6 commits November 14, 2026 19:53
The validity step said to report INVALID with no number, yet recorded
replies refused the delta while quoting it. Say that no score, delta or
interval from an INVALID run is written, even inside a refusal, an arm
comparison or a subtraction, name the figure "the delta in the noise
report", and quote the verdict line rather than the noise-report line.

Refs: #16251

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RAoAtSBDhQLz3izEEg3ZRq
Refs: #16251

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RAoAtSBDhQLz3izEEg3ZRq
"The verdict line" could mean the noise report's own verdict lines, and
"Call it" had no clear antecedent. Name the `verdict: INVALID` line and
refer to the delta as "the delta in the noise report", not by its value.

Refs: #16251

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RAoAtSBDhQLz3izEEg3ZRq
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 15, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T01:08:05.955213Z 348f663 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 348f66317d94bd0b50cc91dad32cb0d06a862ebb: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #16267 (fix(evals): tell plugin-eval not to repeat an INVALID run's figure)

No findings. I read every hunk of both changed files: .changes/evals/fix-16251-plugin-eval-invalid-no-number-31f0e255.md and plugins/evals/skills/plugin-eval/SKILL.md.

What changed: In Reading the delta, step 1 now:

  • tells the reader not to quote any score, delta or interval from an INVALID run, even when refusing it;
  • says to call the delta "the delta in the noise report" instead of giving its value;
  • says to post the verdict: INVALID line and its reasons instead.

Checks:

  • Consistency with the rest of the skill: The new rule agrees with the sentence before it ("Report a score, delta, or interval only from verdict: VALID") and with the stop-early read order. "The noise report" is an existing term in the skill (step 6, SKILL.md#L326).
  • Matches the eval it targets: The new wording fits the scenario in pe-invalid-no-number/prompt.md, where the user pastes a noise-report delta. It also fits the not_contains figure regex of the no-number grader there.
  • No digits added: The new sentences contain no numbers, so they don't put the case's figures back into the text.
  • Rest of the paragraph: Only re-wrapped. The harness failure: and exit-2 instructions are unchanged.
  • Path-scoped rule: .claude/rules/skill-bodies-state-current-rules.md applies to the SKILL.md change. The new text restates nothing that could drift upstream, so the rule is satisfied.
  • Changelog fragment: bump: patch fits a fix to the skill's instructions. No plugin manifest changed, so the manifest checks don't apply.
  • Closing issue: None. The PR says Refs: #16251 but doesn't close it, so I checked no acceptance criteria.
  • Verification is unconfirmed: The PR's measurements are pending or reported by the author, not something I ran. That includes the before/after eval of pe-invalid-no-number, where the bar is no-number passing at least 5 of 6 runs per model. The PR's do-not-merge label and pending EVAL RECORD keep it out of merge until those results are recorded.

Note (not counted as a finding, and the PR description already raises it): The sibling grader invalid-gate-no-number/graders/no-number-from-invalid.md#L8 still words its pass condition as "Do not post the +0.30", which quotes the figure the new rule forbids. That grader is an LLM judge that reads meaning, and the PR's planned before/after runs measure this case too, so I'm leaving it to that eval record.

Spend: This change adds no billed resources. The planned before/after eval runs (at least 6 per side on Sonnet and Opus) use prepaid API credit or subscription usage only.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 348f66317d94bd0b50cc91dad32cb0d06a862ebb: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review: no security issues found

I read the whole diff for both changed files. Neither file matches a trusted-path glob.

  • .changes/evals/fix-16251-plugin-eval-invalid-no-number-31f0e255.md is a new patch changelog fragment. It is plain text and runs nothing.
  • plugins/evals/skills/plugin-eval/SKILL.md (Reading the delta, step 1) changes how an INVALID eval run is reported:
    • Unchanged: a score, delta or interval is still reported only from a run with verdict: VALID.
    • Tighter: on an INVALID run the skill now says to quote no score, delta or interval, even while refusing it.
    • Rewrapped only: the instructions to post the verdict: INVALID line and its reasons, to treat a harness failure: reason as a harness failure, and to explain exit 2 keep their meaning.

Instruction-surface lens: the edit rewrites a standing instruction in a skill body, so I checked it before applying skip 2. It removes no rule and makes no rule weaker. It adds one restriction and reflows the rest. Since no protected-class rule was removed, I did not need to check the instruction exception register.

The change touches no trust controls, merge holds, workflows, tokens, secrets or plugin manifests. It adds no new path for untrusted input. No text in the pull request context tries to instruct this lane.

critical-findings: 0

@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 15, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit 65eff69 Nov 15, 2026
131 of 137 checks passed
@kyle-sexton
kyle-sexton deleted the fix/16251-plugin-eval-invalid-no-number branch November 15, 2026 04:05
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant